package com.ruoyi.returnQuery.service.impl;

import java.util.List;

import com.ruoyi.balanceReturn.domain.HouseReturnT;
import com.ruoyi.balanceReturn.mapper.HouseReturnTMapper;
import com.ruoyi.returnQuery.mapper.HouseReturnQueryTMapper;
import com.ruoyi.returnQuery.service.IHouseReturnQueryTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 返还Service业务层处理
 * 
 * @author lijie
 * @date 2023-05-04
 */
@Service
public class HouseReturnQueryTServiceImpl implements IHouseReturnQueryTService
{
    @Autowired
    private HouseReturnQueryTMapper houseReturnQueryTMapper;

    /**
     * 查询返还
     * 
     * @param returnId 返还主键
     * @return 返还
     */
    @Override
    public HouseReturnT selectHouseReturnTByReturnId(Long returnId)
    {
        return houseReturnQueryTMapper.selectHouseReturnTByReturnId(returnId);
    }

    /**
     * 查询返还列表
     * 
     * @param houseReturnT 返还
     * @return 返还
     */
    @Override
    public List<HouseReturnT> selectHouseReturnTList(HouseReturnT houseReturnT)
    {
        return houseReturnQueryTMapper.selectHouseReturnTList(houseReturnT);
    }

    @Override
    public HouseReturnT selectHouseReturnSum(HouseReturnT houseReturnT)
    {
        return houseReturnQueryTMapper.selectHouseReturnSum(houseReturnT);
    }

    @Override
    public HouseReturnT selectHouseReturnNote(Long costId) {
        return houseReturnQueryTMapper.selectHouseReturnNote(costId);

    }

}
